package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.adapters.old.QRCodeDetailAdapter
import com.hinnotek.amoeba.bean.old.QRCodeDetailBean
import com.hinnotek.amoeba.databinding.ActivityOrcodeDetailLayoutBinding
import com.hinnotek.amoeba.ext.init

class ORCodeDetailActivity : BaseActivity<ActivityOrcodeDetailLayoutBinding>() {

    private var adapter: QRCodeDetailAdapter? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setLeftVisible(true)
        setTitle("产品详情")

        setContentView(R.layout.activity_orcode_detail_layout)
        initVew()
    }

    override fun initVew() {
        adapter = QRCodeDetailAdapter()
        bindingView.recyclerQR.init()
        bindingView.recyclerQR.setAdapter(adapter)
        val list = mutableListOf<QRCodeDetailBean>()
        for (i in 0..9) {
            val data = QRCodeDetailBean()
            list.add(data)
        }
        adapter?.setNewInstance(list)
    }

    override fun setData() {}
}